<html>
<script src="jquery.min.js"></script>

<script>
    $.ajaxSetup({crossDomain: true, xhrFields: {withCredentials: true}});

	var url = "http://dev.online.com/api/user/v1/curruser";
					$.get(url,function(result){
                        alert(result.result);
                    },"json");
</script>
<img src="http://scfapi.online.com/api/basics/v1/open/imgcode">
</html>